package com.yzc.menu;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @TableName t_menu
 */
@TableName(value ="t_menu")
@Data
public class MenuBean implements Serializable {
    private Integer id;

    private String name;

    private String url;

    private String icon;

    private String memo;

    private Integer px;

    @TableLogic
    private Integer state;

    private Integer parentid;

    private static final long serialVersionUID = 1L;

    //扩展字段
    @TableField(exist = false)
    private String parentname;//上级菜单名称
    @TableField(exist = false)
    private List<MenuBean> children;

}